#define _CRT_SECURE_NO_WARNINGS 1
#include "SeqList.h"

void SeqListTest1()
{
	SeqList data;
	SeqListInit(&data);
	SeqListPushBack(&data, 1);
	SeqListPushBack(&data, 2);
	SeqListPushBack(&data, 3);
	SeqListPushBack(&data, 4);
	SeqListPrint(&data);
	
	SeqListPopBack(&data);
	SeqListPrint(&data);

	SeqListPopBack(&data);
	SeqListPrint(&data);

	SeqListPopBack(&data);
	SeqListPrint(&data);

	SeqListPopBack(&data);
	SeqListPrint(&data);

}

void SeqListTest2()
{
	SeqList data;
	SeqListInit(&data);
	SeqListPushFront(&data, 1);
	SeqListPushFront(&data, 2);
	SeqListPushFront(&data, 3);
	SeqListPushFront(&data, 4);
	SeqListPushFront(&data, 5);
	SeqListPrint(&data);

	SeqListPopFront(&data);
	SeqListPrint(&data);

	SeqListPopFront(&data);
	SeqListPrint(&data);

	SeqListPopFront(&data);
	SeqListPrint(&data);

	SeqListPopFront(&data);
	SeqListPrint(&data);


}

void SeqListTest3()
{
	SeqList data;
	SeqListInit(&data);
	SeqListPushBack(&data, 1);
	SeqListPushBack(&data, 2);
	SeqListPushBack(&data, 3);
	SeqListPushBack(&data, 4);
	SeqListPushBack(&data, 5);
	SeqListPrint(&data);

	SeqListInsert(&data, 2, 10);
	SeqListPrint(&data);

	SeqListErase(&data, 4);
	SeqListPrint(&data);
}

int main()
{
	SeqListTest2();

	return 0;
}